package com.hzhc.service;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzhc.entity.CntrYard;
import com.hzhc.utils.ResultUtil;
import com.hzhc.vo.CntrYardVo;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * <p>
 * 场箱位 服务类
 * </p>
 *
 * @author 功不唐捐
 * @since 2024-05-23
 */
public interface CntrYardService extends IService<CntrYard> {

    List<CntrYardVo> getCntrYardList(Page<CntrYardVo> page, CntrYardVo vo);

    ResultUtil<T> addCntrYard(CntrYard yard);

    ResultUtil<T> updateCntrYard(CntrYard yard);

    ResultUtil<T> delCntrYard(Long id);

    List<CntrYardVo> getCntrYardVoJson(Page<CntrYardVo> page, CntrYardVo vo);

    List<CntrYardVo> getCntrYard(CntrYardVo vo);

    List<CntrYard> selectBayByArea(String area);

    CntrYard selectRowByAreaAndBay(String area);

    ResultUtil<List<JSONObject>> getYardArea();

    CntrYard selectRowCenBayAreaBay(String bay);

    CntrYard selectRowOrLayerBayArea(String area,String bay);

    List<CntrYard> selectCntrArea();
}
